package com.lut.teacher.teacherservice.service.impl;

import com.lut.teacher.teacherservice.utils.PageUtils;
import com.lut.teacher.teacherservice.utils.Query;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;


import com.lut.teacher.teacherservice.dao.IndexesDao;
import com.lut.teacher.teacherservice.entity.IndexesEntity;
import com.lut.teacher.teacherservice.service.IndexesService;


@Service("indexesService")
public class IndexesServiceImpl extends ServiceImpl<IndexesDao, IndexesEntity> implements IndexesService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<IndexesEntity> page = this.page(
                new Query<IndexesEntity>().getPage(params),
                new QueryWrapper<IndexesEntity>()
        );
        return new PageUtils(page);
    }

}